# -*- coding: utf-8 -*-
"""
  @Time    : 2024/3/1 10:59
  @Author  : 
  @email   : 
  @File    : extensions.py
"""


from flask_apscheduler import APScheduler
from prometheus_client import CollectorRegistry, Gauge

registry = CollectorRegistry()

# 定义metrics
container_pids_usage = Gauge(
    'container_pids_usage', 'Usage Number of PIDs in the container', [
        'instance', 'name'], registry=registry)
container_pids_limit = Gauge(
    'container_pids_limit', 'Limit Number of PIDs in the container', [
        'instance', 'name'], registry=registry)

# 实例化APScheduler
scheduler = APScheduler()
